"""

"""
from turtle import *
import random
def one(size,count):
    pencolor(random.randint(0,1),random.randint(0,1),random.randint(0,1))
    fillcolor(random.randint(0,1),random.randint(0,1),random.randint(0,1))
    begin_fill()
    while count<4:
        forward(size)
        right(90)
        count=count+1
    end_fill()
def main():
    count=0
    # 改变画笔起始点的位置
    for i in range(20):
        size = random.randint(-300, 200)
        x = random.randrange(-200, 200)
        y = random.randrange(-200, 200)
        print(size,x,y)
        penup()
        # goto(x,y)移动到x，y所确定的那个点上
        goto(x, y)
        pendown()
        one(size, count)
    exitonclick()

if __name__ == '__main__':
    main()